<%-- 
    Document   : changepassword
    Created on : May 25, 2011, 1:20:49 PM
    Author     : hung
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
   <link href="register.css" rel="stylesheet" type="text/css" />

<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextField.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet"
      type="text/css" />
<%@include file="WEB-INF/jspf/header.jspf"%>

   <%
    String error = (String)request.getAttribute("error");
    if(error == null){
    error="";
}
   %>
   <div class="borderheader"><h2>User Control Panel</h2></div>
<div id="doimatkhau">
<form action="ChangePasswordServlet" method="post" >
<div class="tieuDeDangKy"> Đổi mật khẩu</div>
 <div class="lbNameLogin"><font color="red"><%=error%></font></div>
 <div class="lbNameLogin"><label>Tên đăng nhập:</label></div>
 <div class="textFileNameLogin"><span id="sprytextfield1"><input disabled="true" value="<%=user.getUsername()%>"
                        name="loginName" type="text" size="35" id="iusername"/>
                    <span id="susername"></span> <span class="textfieldRequiredMsg">*</span></span></div>
            <div class="labelPass"><label>Mật khẩu cũ: </label></div>
            <div class="textFilePass"><span id="sprytextfield2"><input
                         id="ipass1" name="pass" type="password" size="35" />
                        
                    <span id="spass"></span> <span class="textfieldRequiredMsg">*</span></span></div>
                     <div class="labelPass"><label>Mật khẩu mới: </label></div>
            <div class="textFilePass"><span id="sprytextfield3"><input
                        onfocus="return checkUserNameExist()" id="inewpass1" name="newpass" type="password" size="35" />
                        
                    <span id="spass"></span> <span class="textfieldRequiredMsg">*</span></span></div>
                    <div class="labelPass"><label>Nhập lại MK: </label></div>
            <div class="textFilePass"><span id="sprytextfield4"><input
                         id="inewpass1" name="newpass2" type="password" size="35" />
                  <span id="spass"></span> <span class="textfieldRequiredMsg">*</span></span></div>
                    <div id="submit"> <input name="thaydoi" type="submit"
                                             id="thaydoi" value="Thay đổi" />&emsp;&emsp;
            <input name="reSet" type="reset"
                                            id="reSet" value="ReSet" /></div>
                 </form>   
                    </div>
  <script type="text/javascript">
       // <!--
        var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
        var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
        var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1","none", {validateOn : [ "blur" ]  });
        var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3","none", {validateOn : [ "blur" ]  });
        var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2","none", {validateOn : [ "blur" ]  });
        var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4","none", {validateOn : [ "blur" ]  });
        //-->
    </script>
<%@include file="WEB-INF/jspf/footer.jspf"%>